package com.example.erp.dto.loginDTO.routerDTO;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

@Data
@JsonIgnoreProperties(value = {"menuId"},allowSetters = true)
public class ChildDTO {
    private final Long menuId;
    private final String path;
    private final String component;
    private final String name;
    private final MetaDTO meta;
    private final Boolean hidden;
    private final Boolean alwaysShow;

    public ChildDTO(Long menuId,String path, String component, String name,Boolean hidden,Boolean  alwaysShow,MetaDTO meta) {
        this.menuId = menuId;
        this.path = path;
        this.component = component;
        this.name = name;
        this.meta = meta;
        this.hidden = hidden;
        this.alwaysShow = alwaysShow;
    }
}
